﻿using ACC.Business;
using ACC.Business.Utils;
using ACC.Data.Line;
using ACC.Device.PLC;
using ACC.Device.PLC.Siemens;
using ACC.LineDevice.KukaPack;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Script
{
    /// <summary>
    /// L1P10050 灭火装置（预留）,取消？
    /// L1P12040 PACK称重，自动 取消？
    /// PLC121 烘房
    /// PLC130 1010 到 1090
    /// PLC140 2010 到 烘房前 3080
    /// PLC150 5010 到 7060
    /// PLC160 8020 到 8030 EOL
    /// PLC170 9010 到 13110 最后
    /// </summary>
    public class PL02 : LineProcessKukaPack
    {
        public PL02(LineData data)
            : base(data)
        {
            restfulUrl = "http://127.0.0.1:4002/api/KukaPack/";
        }

        protected override void InitDriver()
        {
            base.InitDriver();

            /*
             * 以下代码用于设定使用虚拟PLC
             */

            //获取在Config中配置的Device对应的Driver
            //PLCDriver driver = (PLCDriver)LineDeviceDrivers["PLC1702"];
            //driver.SetBaseDriver(new VSiemensDriver_Base(driver.DeviceCfg));
            //driver = (PLCDriver)LineDeviceDrivers["PLC_20"];
            //driver.SetBaseDriver(new VSiemensDriver_Base(driver.DeviceCfg));
        }

    }
}
